<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <title>本月业绩</title>
    <link rel="stylesheet" href="/addons/jquery-weui-build/css/weui.min.css">
    <link rel="stylesheet" href="/addons/jquery-weui-build/css/jquery-weui.css">
    <link rel="stylesheet" href="/css/system/main.css?v=2018050202">
    <style>
        body{
            background: #fff;
        }
    </style>
</head>
<body ontouchstart>
<div class="index-review month-perform">
    <div class="header-bk">
        <div class="con-head">
            <img @if(empty($user->logo)) src="../../images/system/ps1.png" @else src="{{url($user->logo)}}" @endif><span class="user-name">@if(!empty($user)){{getUserName($user->id)}}@endif</span>
            <p class="p-right"><span class="circle-s"></span>业绩平均<span class="mon-num">@if(!empty($att)){{$att->score}}@else空@endif</span></p>
        </div>
    </div>
    @if(!empty($att))
        <div class="mon-content">
            <div class="mon-sec">
                <h3>{{$att->date}}<span>业绩要求</span></h3>
                <p>{{$att->goal}}</p>
            </div>
            <div class="mon-sec com-progress">
                <h3>{{$att->date}}<span>完成进度</span></h3>
                <p>{{$att->achievement}}</p>
            </div>
        </div>
    @endif
    {{--<div class="mon-content">
        <div class="mon-sec">
            <h3>2018-04<span>业绩要求</span></h3>
            <p>本月销售要求为XXX万元，月中需达到XXX万元</p>
        </div>
        <div class="mon-sec com-progress">
            <h3>2018-04<span>完成进度</span></h3>
            <p>本月销售要求为XXX万元，月中需达到XXX万元</p>
        </div>
    </div>--}}
</div>
<div class="show-hidden">
    <ul>
        <li><a href="{{url('/user/performance/detail')}}"><img src="../../images/system/user.png">我的考评</a></li>
        <li><a href="{{url('/user/performance/index')}}"><img src="../../images/system/all.png">全员考评</a></li>
        <li><a href="{{url('/user/performance/month')}}"><img src="../../images/system/message.png">月度意见</a></li>
    </ul>
</div>
@if($user->role_id == 0)
<div class="reful-tabbar">
    <a href="javascript:void(0)" class="find-link tabbar-item active">
        <div class="img-div">
        </div>
        <p class="tabbar-label">考评</p>
    </a>
    <a href="{{url('/user/message')}}" class="message-center tabbar-item">
        <div class="img-div">
        </div>
        <p class="tabbar-label">消息中心</p>
    </a>
    <a href="{{url('/user/reward')}}" class="reward-punishment tabbar-item">
        <div class="img-div">
        </div>
        <p class="tabbar-label">奖励惩罚</p>
    </a>
    <a href="{{url('/user/setting')}}" class="set-up tabbar-item">
        <div class="img-div">
        </div>
        <p class="tabbar-label">设置</p>
    </a>
</div>
@endif
<script src="/js/jquery-2.1.4.min.js"></script>
<script src="/addons/jquery-weui-build/js/fastclick.js"></script>
<script>
    $(function() {
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        FastClick.attach(document.body);
    });
</script>
<script src="/addons/jquery-weui-build/js/jquery-weui.min.js"></script>
<script>
    $('.find-link').click(function () {
        $('.show-hidden').toggle();
    });
</script>
</body>
</html>